rolesystem.roles.auction
Class Sale

java.lang.Object
  extended by rolesystem.roles.auction.Sale
All Implemented Interfaces:
java.io.Serializable

public class Sale
extends java.lang.Object
implements java.io.Serializable

This class represents the sale of a good. Instances of this class are constant, once created they cannot be changed.

See Also:
Serialized Form

Constructor Summary
Sale(Price reserve, java.lang.String goodDesc, java.io.Serializable good)
           
 
Method Summary
 java.io.Serializable getGood()
          Returns the good put on sale.
 java.lang.String getGoodDesc()
          Returns the good description.
 Price getReserve()
          Returns the reserve price.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sale

public Sale(Price reserve,
            java.lang.String goodDesc,
            java.io.Serializable good)
Parameters:
reserve - Reserve price.
goodDesc - Good description.
good - Good put on sale.
Method Detail

getReserve

public Price getReserve()
Returns the reserve price.

Returns:
The reserve price.

getGoodDesc

public java.lang.String getGoodDesc()
Returns the good description.

Returns:
The good description.

getGood

public java.io.Serializable getGood()
Returns the good put on sale.

Returns:
The good put on sale.